package com.blacktry.service;

import com.blacktry.entity.model.ApiResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

public interface OCRService {
    public ApiResult<List<String>> scanFileByMultipartFile(MultipartFile file) throws Exception;


    public List<String> scanByFile(File fileBuffer) throws Exception;

    public List<List<String>> scanByUrls(String[] urls);

    public List<String> scanByUrl(String url);
    /**
     * 解析Json
     * @param string 获取response中的Json
     * @return
     */
    public List<String> prase(String string);
}
